package com.xd.springboot.service;

import com.xd.springboot.dao.UserDao;
import com.xd.springboot.entity.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Set;

@Service
public class UserService {

    @Resource
    private UserDao userDao;

    public User getByUsername(String username)
    {
        return userDao.getByUserName(username);
    }

    public Set<String> getRoles(String username) {
        return userDao.getRoles(username);
    }

    public Set<String> getPermissions(String username) {
        return userDao.getPermissions(username);
    }


}
